package com.alex.space;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Alex Created by Alex on 2018/4/9.
 */
@FeignClient(value = "SERVICE-HELLO", fallback = ServiceHelloHystric.class)
public interface IServiceHello {

  @RequestMapping(value = "/hello", method = RequestMethod.GET)
  String sayHiFromClientOne(@RequestParam(value = "name") String name);

}
